﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class 委托及多路广播委托 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        InsTanc.Act = abc;
        InsTanc.Act += abd;

        InsTanc.Act("字符1");

    }

    public void abc(string aa)
    {
        Response.Write("aa;" + aa + "<br/>");
    }

    public void abd(string aa)
    {
        Response.Write("多路委托;" + aa + "<br/>");
    }
}

public class InsTanc{
    /// <summary>
    /// Action
    /// </summary>   
    public static Action<string> Act { get; set; }}